//
//  XiaoximenVotePlace.m
//  Xiaoximen_iOS
//
//  Created by Wang Zhongyu on 12-7-19.
//  Copyright (c) 2012年 Peking University. All rights reserved.
//

#import "XiaoximenVotePlace.h"

@implementation XiaoximenVotePlace
@synthesize party, ID, placeName, totalVote, yesVote, noVote;
@synthesize yesPersons = _yesPersons, noPersons = _noPersons;

- (id)initWithPlaceName:(NSString *)name
				placeID:(NSUInteger)placeID
{
	self = [super init];
	if (self) {
        // Custom initialization
		placeName = name;
		ID = placeID;
		totalVote = yesVote = noVote = 0;
	}
	return self;
}
- (NSMutableArray *)yesPersons
{
	if (_yesPersons == nil) {
		_yesPersons = [[NSMutableArray alloc] init];
	}
	return _yesPersons;
}
- (NSMutableArray *)noPersons
{
	if (_noPersons == nil) {
		_noPersons = [[NSMutableArray alloc] init];
	}
	return _noPersons;
}

@end
